<div class="xm-rate-wrap" (mouseleave)="rateLeave()">
  <xm-rate-item
    *ngFor="let item of starArray; index as i"
    [tpl]="tpl"
    [rateItemCls]="rateItemStyles[i]"
    (itemClick)="rateClick($event, i)"
    (itemHover)="rateHover($event, i)">
  </xm-rate-item>
</div>
